package com.teamsea.bean.factory;

import com.teamsea.bean.Bean1;

public class Bean1Factory {

    public Bean1 getBean() {
        return new Bean1();
    }

    public Bean1 getBean(String parameter) {
        System.out.println("实例化工厂:使用参数:" + parameter + ",初始化bean1");
        Bean1 bean = new Bean1();
        bean.setParameter(parameter);
        return bean;
    }

}
